package com.netty.design_pattern.prototype;

import java.text.MessageFormat;

/**
 * Description:
 *
 * @author: StriverFeng
 * @date: 2018-10-3
 * Details:
 */
public class EmailUtils {
    public  static  void  sendEmail(Email email){
        String outPutEmailContent="{向{0},同学,邮件地址:{1},邮件内容:{2},发送邮件成功}";
        System.out.println(MessageFormat.format(outPutEmailContent,email.getName(),email.getAddressName(),email.getContent()));

    }

}
